package com.wlyuan.open.scanner.utils.enums.transport;

import lombok.Getter;

/**
 * @author lijing
 * @description 老系统回单类型
 */
@Getter
public enum ReceiptTypeEnum {

    REPLENISH(1, "回单补单"),

    LOST(2, "回单丢失"),

    NORMAL(3, "正常"),

    INIT(0, "初始化"),
    ;

    private final Integer value;
    private final String name;

    ReceiptTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public static boolean isInit(Integer val) {
        return INIT.getValue().equals(val);
    }

    public static boolean isLost(Integer val) {
        return LOST.getValue().equals(val);
    }

    public static boolean isNormal(Integer val) {
        return NORMAL.getValue().equals(val);
    }

    public static boolean isReplenish(Integer val) {
        return REPLENISH.getValue().equals(val);
    }
}
